<%@ page import="com.atguigu.bean.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    User user = new User(1001,"admin","123","123@qq.comm");
    request.setAttribute("user",user);
%>
使用jsp表达式获取request域对象中user对象的各个属性 : <br>
id:<%((User)request.getAttribute("user")).getId();%>,
用户民：<%((User)request.getAttribute("user")).getUsername();%>,
密码：<%((User)request.getAttribute("user")).getPassword();%>,
邮箱：<%((User)request.getAttribute("user")).getEmail();%>
<br>
使用el表达式获取equest域对象中user对象的各个属性(方式1): <br>

id：${requestScope.user.id},
用户名：${requestScope.user.username},
密码：${requestScope.user.password},
邮箱：${requestScope.user.email}

使用el表达式获取equest域对象中user对象的各个属性(方式.2): <br>

id：${requestScope.user["id"]},
用户名：${requestScope.user["username"]},
密码：${requestScope.user["password"]},
邮箱：${requestScope.user["email"]}




</body>
</html>
